package com.kuangstudy.io.demo;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * ClassName: Demo8
 * date: 2021/07/16 11:33:13
 * @author zlk
 */
public class Demo9 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("e:\\2.txt");
        fos.write(49);//49-->1
        fos.write(48);//48-->0
        fos.write(48);//48-->0
        byte[] bytes = {65,66,67};
        fos.write(bytes);
        fos.write(bytes,1,2);
        byte[] bytes1 = "你好".getBytes();
        fos.write(bytes1);
        fos.close();

    }
}
